keyword->string
kwSummary
Convert a keyword into a string
Arguments
kw
The input keyword
Return value
Returns the string for kw
Examples
(keyword->string :asd) "asd"
Bytecode
Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.
( 0 ($push/val :keyword)) ( 2 ($get/val 'type-of)) ( 4 ($get/val 'kw)) ( 6 ($apply 1)) ( 8 ($=)) ( 9 ($jf* 7)) ( 12 ($push/nil)) ( 13 ($jmp* 21)) ( 16 ($get/val 'throw)) ( 18 ($get/val 'list)) ( 20 ($push/val :type-error)) ( 22 ($push/val (keyword->string) can only be called on keywords)) ( 24 ($get/val 'kw)) ( 26 ($get/val 'current-lambda)) ( 28 ($apply 0)) ( 30 ($apply 4)) ( 32 ($apply 1)) ( 34 ($drop)) ( 35 ($get/val 'string)) ( 37 ($get/val 'keyword->symbol)) ( 39 ($get/val 'kw)) ( 41 ($apply 1)) ( 43 ($apply 1)) ( 45 ($ret))